package com.wangshuo.common;

import com.wangshuo.domain.SysLoginLog;
import com.wangshuo.mapper.SysLoginLogMapper;
import jakarta.annotation.Resource;

public class RecordLoginLog {
    @Resource
    private SysLoginLogMapper sysLoginLogMapper;
    public void recordLoginLog1(String username, Integer status, String ipaddr,String message) {
        SysLoginLog sysLoginLog = new SysLoginLog();
        sysLoginLog.setUsername(username);
        sysLoginLog.setIpaddr(ipaddr);
        sysLoginLog.setMsg(message);
        // 日志状态
        sysLoginLog.setStatus(status);
        sysLoginLogMapper.insert(sysLoginLog);
    }
}
